package homework.mission3;

/**
 * 通话套餐类
 */
public class ConcatBusiness extends PhoneBusiness implements ConcatServiceInter {
    //通话时长
    private double duration;
    //短信条数
    private int messageNum;

    public double getDuration() {
        return duration;
    }

    public void setDuration(double duration) {
        this.duration = duration;
    }

    public int getMessageNum() {
        return messageNum;
    }

    public void setMessageNum(int messageNum) {
        this.messageNum = messageNum;
    }

    @Override
    public String toString() {
        super.toString();
        return "ConcatBusiness{" +
                "duration=" + duration +
                ", messageNum=" + messageNum +
                '}';
    }

    @Override
    public void concatService(int minutes, PhoneCard phoneCard) {
        System.out.println("通话套餐类实现通话服务接口");
    }
}
